/**   
* @Title: DicPrimarySubject.java 
* @Package cn.hbu.zlfw.dic.entity 
* @Description: TODO
* @author HRX   
* @date 2018年5月29日 下午4:09:47 
* @version V1.0   
*/ 
package cn.hbu.zlfw.dic.entity;

import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.JoinColumnOrFormula;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

/** 
* @ClassName: DicPrimarySubject 
* @Description: TODO
* @author HRX 
* @date 2018年5月29日 下午4:09:47 
*  
*/
@Entity
@Table(name="t_dic_primarySubject")
public class DicPrimarySubject implements Serializable{
	/** 
	* @Fields serialVersionUID : TODO
	*/ 
	private static final long serialVersionUID = 8009084333791995307L;
	
	@Id
	@Column(name="id",length=32)
	@GeneratedValue(generator="UUID_KEY")
	@GenericGenerator(name="UUID_KEY",strategy="uuid.hex")
	private String id;
	@ManyToOne
	@JoinColumn(name="dicSubject_id")
	private DicSubject dicSubject;
	private Integer typeCode;
	private String description; 
	private Date createTime;
	private Date updateTime;
	private Integer delState;	//删除状态,1表示已经删除，0表示未删除
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public DicSubject getDicSubject() {
		return dicSubject;
	}
	public void setDicSubject(DicSubject dicSubject) {
		this.dicSubject = dicSubject;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public Integer getDelState() {
		return delState;
	}
	public void setDelState(Integer delState) {
		this.delState = delState;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	public static long getSerialversionuid() {
		return serialVersionUID;
	}
	public Integer getTypeCode() {
		return typeCode;
	}
	public void setTypeCode(Integer typeCode) {
		this.typeCode = typeCode;
	}
	
}
